export interface ResponseBaseData {
  code: number
  message: string
  ok: boolean
}

export interface roleObj {
  id?: number
  createTime?: string
  updateTime?: string
  roleName: string
}

export interface ResponseRoleType extends ResponseBaseData {
  data: {
    records: roleObj[]
    total: number
    size: number
    current: number
    orders: any[]
    hitCount: boolean
    searchCount: boolean
    pages: number
  }
}
export interface rolePermission {
  id: number
  createTime: string
  updateTime: string
  pid: number
  name: string
  code: string
  toCode: string
  type: number
  level: number
  children: rolePermissionArr
}

export type rolePermissionArr = rolePermission[]

export interface ResponseRolePermission extends ResponseBaseData {
  data: rolePermission
  total: number
  size: number
  current: number
  orders: []
  optimizeCountSql: boolean
  hitCount: boolean
  countId: null
  maxLimit: null
  searchCount: boolean
  pages: number
}
